home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / channels / 2Sync / tip_image1 / scripts / frame_1 / DoAction.as
Encoding:
Text File  |  2002-03-22  |  788 b   |  54 lines

  1. function init()
  2. {
  3.    var i = 1;
  4.    while(3 >= i)
  5.    {
  6.       this["img" + i].ph.loadMovie("background" + i);
  7.       i++;
  8.    }
  9. }
  10. function handleKeys(kc)
  11. {
  12.    ss._visible = false;
  13.    ss.gotoAndStop("hold");
  14.    if(typeof kc != "number")
  15.    {
  16.       kc = eval("g" + kc);
  17.    }
  18.    this["FK" + kc]();
  19. }
  20. function swapBG(dir)
  21. {
  22.    this.dir = dir;
  23.    headControl.gotoAndStop(2);
  24. }
  25. function FK116()
  26. {
  27.    swapBG(-1);
  28. }
  29. function FK117()
  30. {
  31.    swapBG(1);
  32. }
  33. function FK118()
  34. {
  35.    gui._visible = !gui._visible;
  36. }
  37. function FK119()
  38. {
  39.    if(ss._visible != true)
  40.    {
  41.       ┬º┬ºpop()[gui] = 0();
  42.       ss.ci = ci;
  43.       ss.swapImages();
  44.    }
  45. }
  46. fscommand("allowScale",false);
  47. this.gotoAndStop("p1");
  48. gF5 = 116;
  49. gF6 = 117;
  50. gF7 = 118;
  51. gF8 = 119;
  52. ci = 2;
  53. init();
  54.